class Admin::AdminController < ApplicationController
  skip_filter :ensure_is_authenticated_in_fb
  before_filter :ensure_is_admin
  layout 'admin'
  
  def index
    
  end
  
  private
  def ensure_is_admin
    flash[:error] = "You need to be an admin" if !current_user || !current_user.is_admin
    redirect_to new_user_session_path if !current_user || !current_user.is_admin
    #raise WebAppExceptions::NotAdmin if !current_user or !current_user.is_admin
  end
  
  
  
end
